﻿using GameEntitySystem;
using TemplatesDatabase;

namespace Game
{
    /// <summary>
    /// 玩家相关组件
    /// </summary>
    public class ComponentPostprocessing : Component
    {
        public ComponentPlayer m_componentPlayer;

        //UpdateOrder IUpdateable.UpdateOrder => UpdateOrder.FirstPersonModels;

        public override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
        {
            m_componentPlayer = Entity.FindComponent<ComponentPlayer>();
        }

        public void Update(float dt)
        {
            //if (m_componentPlayer != null && SubsystemCmdRodBlockBehavior.QuickMode)
            //{
            //	if (!m_componentPlayer.ComponentBody.MoveToFreeSpace(float.PositiveInfinity))
            //	{
            //		m_componentPlayer.ComponentHealth.Health = 1f;
            //		m_componentPlayer.ComponentHealth.m_redScreenFactor = 0f;
            //		m_componentPlayer.ComponentBody.Position += new Vector3(0, 1f, 0);
            //	}
            //}
        }
    }
}